<?php
/**
 * 王召波
 * @author RuoShui <963087326@qq.com>
 * 公众号: 若水小站
 */ 
define("APPID","wx6d15a820e17234bb");
define("APPSECRET","df5d13c4c020b0f955899d0ce219bb99");
define("TOKEN","weixin888");//第一次验证才用的
header("Content-type:text/html;charset=uft-8");
require("./wechat.inc.php");
$wechat = new WeChat(APPID,APPSECRET,TOKEN);
$menu = '{
     "button":[
     {	
          "type":"click",
          "name":"新闻",
          "key":"news"
      },
      {
           "name":"游戏",
           "sub_button":[
           {	
               "type":"view",
               "name":"激情时速",
               "url":"http://yx8.com/game/jiqingshisu/"
            },
            {
               "type":"view",
               "name":"无尽卡车",
               "url":"http://yx8.com/wujinkache/"
            }]
       }]
 }';
echo $wechat->_createMenu($menu);
?>